package listbyorder.access101_200.test169;

import java.util.Arrays;

/**
 * @author code_yc
 * @version 1.0
 * @date 2020/6/14 13:26
 */
public class Solution1 {

    public int majorityElement(int[] nums) {
        Arrays.sort(nums);
        return nums[nums.length / 2];
    }
}
